package cn.e4j.modular.erp.v2.entity;


import cn.e4j.modular.erp.v2.entity.base.BaseRequestEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 订单接口请求
 * Created by yuan_rz on 2019-03-19.
 */
public class OrderCreateRequestEntity extends BaseRequestEntity {
    public Datakey datakey = new Datakey();
    public class Datakey{
        public String EntId ="";
        public String CompanyId ="";
    }
    public Payload payload = new Payload();
    public class Payload{
        public StdData std_data = new StdData();
        public class StdData{
            public Parameter parameter = new Parameter();
            public class Parameter{
                public String enterprise_no = "";
                public String site_no = "";
                //单头
                public List<SoMaster> so_master = new ArrayList<>();
                public class SoMaster{
                    //订单单号
                    public String so_no = "";
                    //订单日期
                    public String so_date = "";
                    //业务人员
                    public String sales_no = "";
                    //业务部门
                    public String sales_department_no = "";
                    //客户编号
                    public String customer_no = "";
                    //订单性质
                    public String so_kind = "";
                    //资料来源
                    public String source_type = "";
                    //客户订单单号
                    public String customer_so_no = "";
                    //订单总未税金额
                    public String total_trans_curr_not_tax_amount = "";
                    //订单总含税金额
                    public String total_trans_curr_tax_amount = "";
                    //订单总税额
                    public String total_trans_curr_tax = "";
                    //单身
                    public List<SoDetail> so_detail = new ArrayList<>();
                    public class SoDetail{
                        //项次
                        public String so_seq ="";
                        //料号
                        public String item_no ="";
                        //销售单位
                        public String sales_unit_no = "";
                        //销售数量
                        public String so_qty = "";
                        //约定交货日
                        public String so_due_date = "";
                        //预定签收日
                        public String receive_date = "";
                        //单价
                        public String price = "";
                        //税别编号
                        public String tax_no = "";
                        //客户料号
                        public String customer_item_no = "";
                    }
                }
            }
        }
    }
}
